package cn.learn.dubbo3.enhance.configuration;

import cn.learn.service.common.api.UserServiceDubbo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.spring.ReferenceBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Desc
 * @Author XieWei
 * @Date 2022/1/25 16:06
 */
//@Configuration
public class DubboRefrenceConfiguration {
    @Bean
    @DubboReference(version = "1.0",group = "user")//,interfaceName = "cn.learn.service.common.api.UserServiceDubbo"
    public ReferenceBean<UserServiceDubbo> userServiceDubbo(){
        return new ReferenceBean<>();
    }
}
